package com.example.administrator.a514fy.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import android.view.View;
import android.widget.Button;

import com.example.administrator.a514fy.R;

public class login_Main extends AppCompatActivity {
        private Button btn_login,btn_register;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login__main);
        btn_login=(Button)findViewById(R.id.btn_login);
        btn_register=(Button)findViewById(R.id.btn_register);
        btn_register.setOnClickListener(login_listener);

    }
  View.OnClickListener login_listener=new View.OnClickListener(){

      @Override
      public void onClick(View v) {
          switch (v.getId()){
              case R.id.btn_register:
                  Login();
                  break;
              case R.id.btn_login:
                  break;
          }
      }
  };
    public  void Login(){
        Intent intent_L=new Intent(login_Main.this,registered_Main.class);
        startActivity(intent_L);
    }
}
